<html>
<head>
<TITLE>Internal System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
<script language="JavaScript" src="../js/calender.js" type="text/JavaScript"></script>

{literal}
<SCRIPT language=JavaScript>
var valid = new Validation();

function checkForm(){
	if (valid.isEmpty("name","Celebrity name")){
		return false;
	}else{
		return true;
	}
}
</script>
{/literal}

<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="" enctype="multipart/form-data">
  <table width="100%" cellspacing="0" cellpadding="4">
    <tr bgcolor="#E4E4E4"> 
      <td width="20%">Add Celebrity </td>
    <td width="70%"><font color="#FF0000">&nbsp;{$error_message}</font></td>
      <td width="10%" align="right">&nbsp;<A href="{$backurl}" target="_self">Back</A>&nbsp;&nbsp;</td>
     </tr>
    
    <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td align="right">Name:</td>
      <td colspan="2"> 
        &nbsp;<input name="name" id="name" type="text" value="{$name}" size="60" maxlength="100">
        <font color="#FF0000"> *</font> </td>
    </tr>

	<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td align="right">Categories:</td>
      <td colspan="2">
        {html_checkboxes name='catIds' options=$catLeaf selected=$catIds separator='&nbsp;'}
      </td>
    </tr>

    <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td height="23" align="right">Is Group:</td>
      <td height="23" colspan="2">&nbsp;{html_radios name="isGroup" options=$arrGroups checked=$isGroup separator=" "}</td>
    </tr>

	<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td align="right">Select Group:</td>
      <td colspan="2">
        <select name="parentId" style="height:22px; margin-top:0px;">
        	<OPTION VALUE="0" SELECTED>None</OPTION>
	  		{html_options options=$celeGroups selected=$parentId}
		</select>
      </td>
    </tr>
    
    <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td align="right">sex:</td>
      <td colspan="2"> 
        &nbsp;<SELECT name="sex">
        		{html_options options=$arrSexs selected=$sex}
			</SELECT>
        </td>
    </tr>
    
    <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td align="right">Birth Date:</td>
      <td colspan="2"> 
        &nbsp;<input name="birthDate" id="birthDate" type="text" value="{$birthDate}" size="20" onKeyDown="SelectDate(this,'yyyy-MM-dd')" onFocus="SelectDate(this,'yyyy-MM-dd')">
        <font color="#FF0000"> *</font> </td>
    </tr>
        
    <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td height="23" align="right">Description:</td>
      <td height="23" colspan="2"><textarea name="description" id="descript" cols="80" rows="10">{$description}</textarea></td>
    </tr>  
       
    <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td height="23" align="right">Status:</td>
      <td height="23" colspan="2">&nbsp;{html_radios name="status" options=$arrStatus checked=$status separator=" "}</td>
    </tr>
 
    <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
      <td height="23" width="17%">&nbsp;</td>
      <td width="83%" height="23" colspan="2">
        <input type="submit" name="Submit" value="Submit" onClick="return checkForm()">
        <input type="reset" name="Reset" value="Reset">
        <input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
        <input name="menuid" type="hidden" id="menuid" value="{$menuid}">
        <input name="backurl" type="hidden" id="backurl" value="{$backurl}"></td>
    </tr>
  </table>
</form>
</body>
</html>